﻿@model Orion.Models.Event

@{
    ViewBag.Title = "IRIS - Atburðir - " + Model.Title;
    
    DateTime temp = Model.EventDate;
}
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/themes/cupertino/jquery-ui.css"
        type="text/css" rel="Stylesheet" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.10/jquery-ui.min.js" type="text/javascript"></script>
<script src="/Scripts/event.js" type="text/javascript"></script>

<section id="main_content">
<h1>@Model.Title</h1>
<div  id="eventIndexCalender">
		<div style="float: right;"id="datepicker"></div>
</divn>
    @if (Model.Picture != "no pic" && Model.Picture != null)
    {
        <img id="imgInFullNews" style="float:right;" src="@Model.Picture" alt="@Model.Picture" />
    }
    <p><b>Skipulagt af:</b> @Model.Author</p>
    <p><b>Dagsetning:</b> @temp.ToString("dd MMMM yyyy") </p>
    <p><b>Tímasetning: </b>@temp.ToString("hh:mm")</p>
    <p><b>Staðsetning:</b> @Model.Address</p>
    <p><b>Lýsing:</b></p>
    <p>@Model.TextBody</p>
    @if(User.IsInRole("Admin") || User.IsInRole("Staff") ){
        @Html.ActionLink("Breyta", "Edit/" + @Model.ID, "Event")
        }
</p>


<div id="googleMap"></div>

</section>
